#include "Fenetres.h"

//(*InternalHeaders(AddEtu)
#include <wx/intl.h>
#include <wx/string.h>
//*)

//(*IdInit(AddEtu)
const long AddEtu::ID_BUTTON1 = wxNewId();
const long AddEtu::ID_TEXTCTRL1 = wxNewId();
const long AddEtu::ID_TEXTCTRL2 = wxNewId();
const long AddEtu::ID_TEXTCTRL3 = wxNewId();
const long AddEtu::ID_TEXTCTRL4 = wxNewId();
const long AddEtu::ID_TEXTCTRL5 = wxNewId();
const long AddEtu::ID_STATICTEXT1 = wxNewId();
const long AddEtu::ID_STATICTEXT2 = wxNewId();
const long AddEtu::ID_STATICTEXT3 = wxNewId();
const long AddEtu::ID_STATICTEXT4 = wxNewId();
const long AddEtu::ID_STATICTEXT5 = wxNewId();
const long AddEtu::ID_BUTTON2 = wxNewId();
const long AddEtu::ID_PANEL1 = wxNewId();
//*)

BEGIN_EVENT_TABLE(AddEtu,wxFrame)
	//(*EventTable(AddEtu)
	//*)
END_EVENT_TABLE()

AddEtu::AddEtu(wxWindow* parent,wxWindowID id)
{
	//(*Initialize(AddEtu)
	Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("id"));
	Panel1 = new wxPanel(this, ID_PANEL1, wxPoint(232,144), wxDefaultSize, wxTAB_TRAVERSAL, _T("ID_PANEL1"));
	Button1 = new wxButton(Panel1, ID_BUTTON1, _("Menu"), wxPoint(192,312), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
	TextCtrl1 = new wxTextCtrl(Panel1, ID_TEXTCTRL1, _("Text"), wxPoint(152,32), wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
	TextCtrl2 = new wxTextCtrl(Panel1, ID_TEXTCTRL2, _("Text"), wxPoint(152,64), wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL2"));
	TextCtrl3 = new wxTextCtrl(Panel1, ID_TEXTCTRL3, _("Text"), wxPoint(152,96), wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL3"));
	TextCtrl4 = new wxTextCtrl(Panel1, ID_TEXTCTRL4, _("Text"), wxPoint(152,128), wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL4"));
	TextCtrl5 = new wxTextCtrl(Panel1, ID_TEXTCTRL5, _("Text"), wxPoint(152,160), wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL5"));
	StaticText1 = new wxStaticText(Panel1, ID_STATICTEXT1, _("Nom"), wxPoint(88,40), wxDefaultSize, 0, _T("ID_STATICTEXT1"));
	StaticText2 = new wxStaticText(Panel1, ID_STATICTEXT2, _("Prenom"), wxPoint(88,72), wxDefaultSize, 0, _T("ID_STATICTEXT2"));
	StaticText3 = new wxStaticText(Panel1, ID_STATICTEXT3, _("addresse"), wxPoint(88,104), wxDefaultSize, 0, _T("ID_STATICTEXT3"));
	StaticText4 = new wxStaticText(Panel1, ID_STATICTEXT4, _("numero de telephone"), wxPoint(40,136), wxDefaultSize, 0, _T("ID_STATICTEXT4"));
	StaticText5 = new wxStaticText(Panel1, ID_STATICTEXT5, _("Branche"), wxPoint(88,168), wxDefaultSize, 0, _T("ID_STATICTEXT5"));
	Butt_Valid = new wxButton(Panel1, ID_BUTTON2, _("Valider"), wxPoint(248,208), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON2"));

	Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&AddEtu::OnButton1Click);
	Connect(ID_BUTTON2,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&AddEtu::OnButt_ValidClick);
	//*)
}

AddEtu::~AddEtu()
{
	//(*Destroy(AddEtu)
	//*)
}


void AddEtu::OnButton1Click(wxCommandEvent& event)
{
    extern Menu* Men;
    Men->Show();
    this->Show(false);
}

void AddEtu::OnButt_ValidClick(wxCommandEvent& event)
{
    vector<Student>::iterator it;
    extern vector<Student> BD;
    string nom,prenom,addresse,numTel,branche;



}
